<?php /* Smarty version 2.6.12, created on 2008-10-30 11:03:59
         compiled from customer/main/send_to_friend.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'strip_tags', 'customer/main/send_to_friend.tpl', 5, false),array('modifier', 'replace', 'customer/main/send_to_friend.tpl', 5, false),array('modifier', 'escape', 'customer/main/send_to_friend.tpl', 21, false),)), $this); ?>
<?php func_load_lang($this, "customer/main/send_to_friend.tpl","lbl_send_your_name,lbl_send_your_email,lbl_recipient_email,lbl_send_your_name,lbl_send_your_email,lbl_recipient_email,lbl_send_to_friend,lbl_send_to_friend"); ?><script type="text/javascript" language="JavaScript 1.2">
<!--
var requiredFields = new Array();
requiredFields[0] = new Array('send_name', "<?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['lng']['lbl_send_your_name'])) ? $this->_run_mod_handler('strip_tags', true, $_tmp) : smarty_modifier_strip_tags($_tmp)))) ? $this->_run_mod_handler('replace', true, $_tmp, '"', '\"') : smarty_modifier_replace($_tmp, '"', '\"')); ?>
", false);
requiredFields[1] = new Array('send_from', "<?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['lng']['lbl_send_your_email'])) ? $this->_run_mod_handler('strip_tags', true, $_tmp) : smarty_modifier_strip_tags($_tmp)))) ? $this->_run_mod_handler('replace', true, $_tmp, '"', '\"') : smarty_modifier_replace($_tmp, '"', '\"')); ?>
", false);
requiredFields[2] = new Array('send_to', "<?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['lng']['lbl_recipient_email'])) ? $this->_run_mod_handler('strip_tags', true, $_tmp) : smarty_modifier_strip_tags($_tmp)))) ? $this->_run_mod_handler('replace', true, $_tmp, '"', '\"') : smarty_modifier_replace($_tmp, '"', '\"')); ?>
", false);
-->
</script>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "check_required_fields_js.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
  $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "check_email_script.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
  ob_start(); ?>
<form action="product.php" method="post" name="send">
<input type="hidden" name="mode" value="send" />
<input type="hidden" name="productid" value="<?php echo $this->_tpl_vars['product']['productid']; ?>
" />
<table>

<tr>
    <td class="FormButton"><?php echo $this->_tpl_vars['lng']['lbl_send_your_name']; ?>
:</td>
	<td><font class="Star">*</font></td>
    <td><input id="send_name" type="text" size="45" name="name" value="<?php echo ((is_array($_tmp=$this->_tpl_vars['send_to_friend_info']['name'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
"/><?php if ($this->_tpl_vars['send_to_friend_info']['fill_err'] && $this->_tpl_vars['send_to_friend_info']['name'] == ''): ?><front class="Star">&lt;&lt;</font><?php endif; ?></td>
</tr>

<tr>
	<td class="FormButton"><?php echo $this->_tpl_vars['lng']['lbl_send_your_email']; ?>
:</td>
	<td><font class="Star">*</font></td>
	<td><input id="send_from" type="text" size="45" name="from" value="<?php echo ((is_array($_tmp=$this->_tpl_vars['send_to_friend_info']['from'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
" onchange="javascript: checkEmailAddress(this);" /><?php if (( $this->_tpl_vars['send_to_friend_info']['fill_err'] && $this->_tpl_vars['send_to_friend_info']['from'] == '' ) || $this->_tpl_vars['send_to_friend_info']['from_failed'] == 'Y'): ?><front class="Star">&lt;&lt;</font><?php endif; ?></td>
</tr>

<tr>
    <td class="FormButton"><?php echo $this->_tpl_vars['lng']['lbl_recipient_email']; ?>
:</td>
	<td><font class="Star">*</font></td>
    <td><input id="send_to" type="text" size="45" name="email" onchange="javascript: checkEmailAddress(this);" value="<?php echo ((is_array($_tmp=$this->_tpl_vars['send_to_friend_info']['email'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
"/><?php if (( $this->_tpl_vars['send_to_friend_info']['fill_err'] && $this->_tpl_vars['send_to_friend_info']['email'] == '' ) || $this->_tpl_vars['send_to_friend_info']['email_failed'] == 'Y'): ?><front class="Star">&lt;&lt;</font><?php endif; ?></td>

</tr> 
<?php if ($this->_tpl_vars['active_modules']['Image_Verification'] && $this->_tpl_vars['show_antibot']['on_send_to_friend'] == 'Y'):  $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "modules/Image_Verification/spambot_arrest.tpl", 'smarty_include_vars' => array('mode' => 'simple','id' => $this->_tpl_vars['antibot_sections']['on_send_to_friend'],'antibot_err' => $this->_tpl_vars['antibot_friend_err'])));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
  endif; ?>
<tr>
	<td colspan="3"><br /><?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "buttons/button.tpl", 'smarty_include_vars' => array('style' => 'button','button_title' => $this->_tpl_vars['lng']['lbl_send_to_friend'],'href' => "javascript: if(checkRequired(requiredFields)) document.send.submit();")));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?></td>
</tr>

</table>
</form>

<?php $this->_smarty_vars['capture']['dialog'] = ob_get_contents(); ob_end_clean();  $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "dialog.tpl", 'smarty_include_vars' => array('title' => $this->_tpl_vars['lng']['lbl_send_to_friend'],'content' => $this->_smarty_vars['capture']['dialog'],'extra' => 'width="100%"')));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>